package main

import "fmt"

func main()  {
	map1:=make(map[string]string)
	map1["name"]="王二狗"
	map1["age"]="30"
	map1["sex"]="男性"
	map1["address"]="北京市"
	for key,value:=range map1{
		fmt.Println(key,value)
	}
	for key,_:=range map1{
		fmt.Println(key,map1[key])
	}
	map1["sex"]="女性"
	fmt.Println(map1)
	delete(map1,"address")
	fmt.Println(map1)

}
